<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>const</title>
</head>
<body>
    <script>
        // const obj={};
        // obj.props=100;
        // console.log(obj);
        // obj.props=200;
        // console.log(obj);
        // obj={};
        // console.log(obj); //Uncaught TypeError: Assignment to constant variable.


        const arr=[];
        arr.push("abc");
        console.log(arr);
        arr.length=0;
        console.log(arr);
        arr=[];
    </script>
</body>
</html>